package cn.easybuy.utils;

import java.util.List;

import cn.easybuy.entity.Product_category;
import cn.easybuy.entity.User;

public class UserPage {
	//数据总量
	private int dataNum;
	//总页数
	private int pageCount;
	//每页显示的数量
	private int pageSize;
	//当前页码
	private int pageNo;
	//每页显示的数据集合
	private List<User> list;
	public int getDataNum() {
		return dataNum;
	}
	public void setDataNum(int dataNum) {
		this.dataNum = dataNum;
		this.pageCount = this.dataNum%this.pageSize==0?this.dataNum/this.pageSize:this.dataNum/this.pageSize+1;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public List<User> getList() {
		return list;
	}
	public void setList(List<User> list) {
		this.list = list;
	}


}
